package com.hrpmar.service.impl;

import com.hrpmar.mapper.WorkerMapper;
import com.hrpmar.pojo.Worker;
import com.hrpmar.service.LoginService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created by c on 2017-11-14.
 */
@Service
@Transactional
public class LoginServiceImpl implements LoginService {

    @Resource
    private WorkerMapper workerMapper;

    @Override
    public Worker login(Integer deId, String landCode, String landPwd) {
        return workerMapper.login(deId,landCode,landPwd);
    }
}
